package greetings

import "fmt"

func (p *Point) showXY(n int) {
	fmt.Println("show xy is :", p.X, p.Y, n)
}

func (p Point) showXYVersion2(n int) {
	fmt.Println("show xy is :", p.X, p.Y, n)
}

func MethodDemo() {

	p := Point{10, 20}
	p.showXY(10)
	(&p).showXY(20)

	p.showXYVersion2(200)
	(&p).showXYVersion2(200)
}
